Gets the value of the specified field (column) as a Char array.
'Declaration
Public Overloads Overrides NotOverridable Function GetChars( _
ByVal As Integer, _
ByVal As Long, _
ByVal () As Char, _
ByVal As Integer, _
ByVal As Integer _
) As Long
'Usage
Dim instance As TdDataReader
Dim ordinal As Integer
Dim dataOffset As Long
Dim buffer() As Char
Dim bufferOffset As Integer
Dim length As Integer
Dim value As Long
value = instance.GetChars(ordinal, dataOffset, buffer, bufferOffset, length)
public override long GetChars(
int ,
long ,
char[] ,
int ,
int
)
public:
int64 GetChars(
int ,
int64 ,
array<char>^ ,
int ,
int
) override
Parameters
- ordinal
- Column ordinal (see TdDataReader.GetOrdinal).
- dataOffset
- Specifies the index within the field from which to begin the read operation.
- buffer
- Indicates the buffer into which to copy the field.
- bufferOffset
- Specifies the index for the buffer to begin the copy operation.
- length
- Specifies the maximum number of characters to copy into the buffer.
Return Value
Returns the number of characters read and stored into the buffer.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019